package com.zq.spring.config;

import com.zq.spring.service.impl.BeanWayService;
import com.zq.spring.service.impl.JSR250WayServiece;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: zhaoqi
 * @Date: 2020/4/24 9:39
 * @Version 1.0
 */

@Configuration
@ComponentScan("com.zq.spring.service.impl")
public class PrePostConfig {

    @Bean(initMethod = "init",destroyMethod = "destory")
    public BeanWayService beanWayService(){
        return new BeanWayService();
    }

    @Bean
    public JSR250WayServiece jsr250WayServiece(){
        return new JSR250WayServiece();
    }

}
